package com.example.drools.dto;

/**
 * 简化的风控评估请求
 */
public class SimpleRiskRequest {
    private String userId;
    private double creditScore;
    private double income;
    private double loanAmount;
    private boolean hasCollateral;
    private int employmentYears;

    // 构造函数
    public SimpleRiskRequest() {}

    public SimpleRiskRequest(String userId, double creditScore, double income, double loanAmount, boolean hasCollateral, int employmentYears) {
        this.userId = userId;
        this.creditScore = creditScore;
        this.income = income;
        this.loanAmount = loanAmount;
        this.hasCollateral = hasCollateral;
        this.employmentYears = employmentYears;
    }

    // Getters and Setters
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public double getCreditScore() {
        return creditScore;
    }

    public void setCreditScore(double creditScore) {
        this.creditScore = creditScore;
    }

    public double getIncome() {
        return income;
    }

    public void setIncome(double income) {
        this.income = income;
    }

    public double getLoanAmount() {
        return loanAmount;
    }

    public void setLoanAmount(double loanAmount) {
        this.loanAmount = loanAmount;
    }

    public boolean isHasCollateral() {
        return hasCollateral;
    }

    public void setHasCollateral(boolean hasCollateral) {
        this.hasCollateral = hasCollateral;
    }

    public int getEmploymentYears() {
        return employmentYears;
    }

    public void setEmploymentYears(int employmentYears) {
        this.employmentYears = employmentYears;
    }
}